package com.dongnao.jack.spring.parse;

import java.util.Map;

import org.springframework.beans.factory.xml.BeanDefinitionParser;

public class BeanDefinitionParserFactory {

    private static Map<String, BaseBeanDefinitionParseInterface> parseMap;

    static {
        parseMap = BeanDefinitionParserBuilderMap.getInstance();
    }

    public static BeanDefinitionParser builderParser(String elementName) {

        /*for (String key : parseMap.keySet()) {
            BaseBeanDefinitionParseInterface parseInterface = parseMap.get(key);
            if (parseInterface.support(key)) return parseInterface;
        
        }*/

        return parseMap.get(elementName);
    }
}
